package com.shareach.util;

import java.text.SimpleDateFormat;

import com.benayn.ustyle.string.Strs;

//全局常量

public interface Globals {
	
	/**
	 * 通用状态标记
	 */
	public static class RecordStatus {
		/**
		 * 有效
		 */
		public static final int VALID = 1;
		/**
		 * 无效
		 */
		public static final int INVALID = 0;
	}
	
	public static final String CATEGORY_PARENTID_SEP = Strs.WHITE_SPACE; 

	String GLOBAL_SERVICE_CODE_EXIST = "exist";
	String GLOBAL_SERVICE_CODE_ERROR = "error";
	String GLOBAL_SERVICE_CODE_NOTEXIST = "notexist";

	String GLOBAL_SERVICE_RET_DOMAIN = "domain";
	String GLOBAL_SERVICE_RET_CODE = "code";
	String GLOBAL_SERVICE_RET_ID = "id";
	String GLOBAL_IMG_ROOT = "img.dir.root";

	// memcache..有效�?
	static final Integer EXPIRE_TIME = 14400;
	// 格式类型
	static final String DATE_FORMAT_A = "yyyyMMdd";

	static final String DATE_FORMAT_B = "yyyy-MM-dd";
	// 格式类型实例
	static SimpleDateFormat FORMAT_TYPE_A = new SimpleDateFormat("yyyy-MM-dd");

	static SimpleDateFormat FORMAT_TYPE_E = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");

	static SimpleDateFormat FORMAT_TYPE_B = new SimpleDateFormat("yyyyMMdd");

	static SimpleDateFormat FORMAT_TYPE_D = new SimpleDateFormat("dd");
	// 功能选项
	static SimpleDateFormat FORMAT_TYPE_C = new SimpleDateFormat("HH:mm");
	static String CONDITION_A = "1";

	static String CONDITION_B = "2";

}
